LassoScript Utility
Basics Browse Detail

[LDAP->Code]

Tag Link [LDAP->Code] Category LDAP
Type Member Source Available No
Support Preferred Version 8.5.1
Change New Data Source Any
Output Type Integer Security None
Implementation Internal Sets Lasso 8.5

Description

[LDAP-> Code] returns the result code for the last LDAP operation. The code will be 0 for success. Values greater than 0 do not necessarily indicate an error. Some values are strictly informative. See the Lasso Language Guide or a guide to LDAP for a list of possible result code.

Syntax

<?LassoScript
Var: 'myLDAP' = LDAP;
$myLDAP->(Open: 'ldap.example.com');
$myLDAP->(Authenticate: 'myusername', 'mysecretpassword');
$myLDAP->(Search: 'dc=example,dc=com'; LDAP_Scope_Subtree, '(objectClass=*)');
Var: 'myCode' = $myLDAP->(Code);
$myLDAP->Close;
?>

Parameters

No Parameters Required.

Change Notes

This tag was added in Lasso 8.5.1.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.